#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

/*
projectile_bbetty_mine
t5_weapon_mortar_viewmodel
weapon_bbetty_mine
weapon_jap_mg_type92_notripod
*/

init()
{
	precacheItem( "mp40_mp" );
	precacheItem( "mp40_sp" );
	precacheItem( "sten_sp" );
	precacheItem( "panzerschreck_player_sp" );
	precacheItem( "frag_grenade_german_sp" );
	precacheItem( "frag_grenade_russian_sp" );
	precacheItem( "m2_flamethrower_sp" );
	precacheItem( "mosin_sp" );
	precacheItem( "mosin_scoped_sp" );
	precacheItem( "stg44_sp" );
	precacheItem( "tokarevtt30_sp" );
	precacheItem( "ppsh_sp" );
	precacheItem( "molotov_sp" );
	precacheItem( "mortarbomb_mp" );
	precacheItem( "waltherp38_sp" );
	level thread onPlayerConnect();
}

onPlayerConnect()
{
	for( ; ; )
	{
		level waittill( "connected", player );
		player thread onPlayerSpawned();
	}
}

onPlayerSpawned()
{
	self endon("disconnect");
	for( ; ; )
	{
		self waittill("spawned_player");
		self takeAllWeapons();
		wait ( 0.05 );
		self giveWeapon( "mp40_mp" );
		wait ( 0.05 );
		self switchToWeapon( "mp40_mp" );
	}
}
